package cn.model;

import cn.util.Toolsutil;

import java.sql.Timestamp;

public class VApply {
    private int applyid;
    private String equipmentName;
    private String applicationTime;
    private String reason;
    private String userid;
    private String username;
    private String realname;
    private int roleid;
    private String phone;
    private Integer auditstatus;
    private String rolename;

    public int getApplyid() {
        return applyid;
    }

    public void setApplyid(int applyid) {
        this.applyid = applyid;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getApplicationTime() {
        return Toolsutil.GetDateFormat(applicationTime);
    }

    public void setApplicationTime(String applicationTime) {
        this.applicationTime = applicationTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public int getRoleid() {
        return roleid;
    }

    public void setRoleid(int roleid) {
        this.roleid = roleid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getAuditstatus() {
        return auditstatus;
    }

    public void setAuditstatus(Integer auditstatus) {
        this.auditstatus = auditstatus;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        VApply vApply = (VApply) o;

        if (applyid != vApply.applyid) return false;
        if (roleid != vApply.roleid) return false;
        if (equipmentName != null ? !equipmentName.equals(vApply.equipmentName) : vApply.equipmentName != null)
            return false;
        if (applicationTime != null ? !applicationTime.equals(vApply.applicationTime) : vApply.applicationTime != null)
            return false;
        if (reason != null ? !reason.equals(vApply.reason) : vApply.reason != null) return false;
        if (userid != null ? !userid.equals(vApply.userid) : vApply.userid != null) return false;
        if (username != null ? !username.equals(vApply.username) : vApply.username != null) return false;
        if (realname != null ? !realname.equals(vApply.realname) : vApply.realname != null) return false;
        if (phone != null ? !phone.equals(vApply.phone) : vApply.phone != null) return false;
        if (auditstatus != null ? !auditstatus.equals(vApply.auditstatus) : vApply.auditstatus != null) return false;
        if (rolename != null ? !rolename.equals(vApply.rolename) : vApply.rolename != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = applyid;
        result = 31 * result + (equipmentName != null ? equipmentName.hashCode() : 0);
        result = 31 * result + (applicationTime != null ? applicationTime.hashCode() : 0);
        result = 31 * result + (reason != null ? reason.hashCode() : 0);
        result = 31 * result + (userid != null ? userid.hashCode() : 0);
        result = 31 * result + (username != null ? username.hashCode() : 0);
        result = 31 * result + (realname != null ? realname.hashCode() : 0);
        result = 31 * result + roleid;
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (auditstatus != null ? auditstatus.hashCode() : 0);
        result = 31 * result + (rolename != null ? rolename.hashCode() : 0);
        return result;
    }
}
